$bool = Fs.CreateFolder
("<path>")
Creates a folder and returns a new Folder object representing that folder.
Parameters
<path> Path and name of the folder to be created.
Return Value
Returns 2 if created successfully, 1 if folder already exists, or 0 if failed to create.
Remarks
- If folder name is specified in the format ".\foldername", without giving the full path, it creates the folder in the current location of the script.
- If folder name is specified in the format "\foldername", it creates the folder in the drive where the script is running.
Example
$src = "C:\Plugins\Time"
$ret = fs.CreateFolder ($src)